<?php

/*

* Open bank account (open_account.pro.php)

*/
ob_start();
include "global.inc.php";

$check = fetch("SELECT * FROM bank2 WHERE user = '$userid' AND game = '$game'");
if ($check[id])
{
	die(header(error("bank.php?game=$game","You already have an account.")));
}
else
{
	mysql_query("INSERT INTO bank2 (user,points,rate,game) VALUES ('$userid','100','1.07','$game')");
	die(header(error("bank.php?game=$game","Thank you for opening your bank account.")));
}

?>